|
This page last changed on Jul 28, 2010 by kgomes.
- Pat installed RHEL 5
- He created a local lroot account for me.
- After talking to IS, in order to mount the Tornado shares properly (AUVCTD, AUVBI, and ssdsdata), we created a domain account named ApacheSSDSRO and I changed the password to something hard to crack.
- I went on to new-ssds and created a new user ApacheSSDSRO with the same UID as the domain account (1113) and added the group apache to its membership.
- I edited the /etc/httpd/conf/httpd.conf file and changed the "User" line from "apache" to "ApacheSSDSRO" which should run the httpd service as ApacheSSDSRO. This was important so that it's UID will get passed to the network share when serving http requests.
- I ran the chkconfig command to make sure httpd started on reboot
- I then edited the /etc/fstab file to mount the tornado shares that SSDS needs:
- I created the directories /data/auvctd, /data/auvbi, /data/ssds/generated, /data/ssds/ruminate/xml, /ssdsdata and made ApacheSSDSRO as the owner and apache as the group for these. (including the parent /data directory).
- I put in a request to IS to have them restore the /data/ssds/ruminate/xml directory
- I downloaded jdk1.6.0_20 from Sun (Oracle's) web site to the Desktop on /root and then ran the .bin executable. It created a directory jdk1.6.0_20 which I then moved to /opt
- I created a symbolic link in /opt to /opt/java which pointed to that folder.
- I then created symbolic links to all the stuff in /opt/java/bin to links in the /usr/bin directory to put them all on the path
- I rebooted here just to make sure everything that I had done to date took:
- httpd service started automatically ... yeah!
- mounts were successful ... yeah!
- Now in order to expose those directories as http shares so people can access them, I created symlinks to those directories in /var/www/html
- Once the backup of /data/ssds stuff was done, IS re-enabled the rsync (running on pismo) so that the files from /data/ssds are copied to /ssdsdata/ssds
- I downloaded jboss-4.0.3SP1 from jboss.org, unzipped and untarred the file on my desktop
- I moved the newly created jboss-4.0.3SP1 folder to /opt
- I changed ownership of that directory to ApacheSSDSRO and apache as group
- I copied the jboss_init_redhat.sh script from the bin directory in jboss to the /etc/init.d directory and renamed to just "jboss"
- I then edited that script and changed:
to
and:
to:
so it will run the default server and it will bind to 134.89.2.25 (this needed to be done because requests to the naming service would return and IP of 127.0.0.1 which would cause clients to barf).
 | CAUTION on binding
Originally, I had assigned the bind to 0.0.0.0 as that was supposed to allow it to bind to all IP addresses associated with the server. Normally this seems to work (and it did for the HTTP stuff), but the JMS clients were still getting 127.0.0.1 as the IP back from the server. This was fixed by setting it to the correct IP address. I have not really pushed on it much, but it could also have something to do with the /etc/hosts file which looks like:
|
Also changed:
to:
- I then edited /opt/jboss/bin/run.sh and added the following so that the various HOMES were explicit.
- I edited /opt/jboss/bin/run.conf and changed:
to:
to makes sure it knows it is not looking for a graphics server and that the timezone to use it UTC and the memory it will use it reasonable.
- I started up JBoss using the /etc/init.d script and it seemed to start up fine. I could see it from a browser on localhost, but not from another machine (maybe firewall issues?).
- I then built and deployed the SSDS application on new-ssds.mbari.org (this is a bit involved and not described here).
- I had to install the mod_jk connector as it was not already installed. I downloaded the binary .so file from the Apache connector project and installed in /usr/lib64/httpd/modules. I also renamed it to just mod_jk.so
- I then configured mod_jk to server basic port 80 traffic to the SSDS application (see https://oceana.mbari.org/confluence/display/SPEPRJ/Apache+mod_jk)
- Then I restarted JBoss
- I.S. had to open some firewall ports for me
- I then added the jboss script to start up for levels 3 and 5 just like for apache by using:
- I was promptly hacked again by leaving the jmx-console and the web-console in place. I removed those by shutting down jboss, removing jmx-console.war and the management directory from the the deploy directory, deleting the tmp and work directories and restarting.
- As an added security measure, we made root owner of all the files in the jboss directory structure except for the directories listed below which were owned by the process that runs JBoss (ApacheSSDSRO):
- JBOSS_HOME/server/default/data
- JBOSS_HOME/server/default/tmp
- JBOSS_HOME/server/default/work
- JBOSS_HOME/server/default/log
- I then removed the http-invoker.sar from the deploy directory to remove the HTTP invoker for JNDI, EJB and JMX.
- I then removed the jms/jbossmq-httpil.sar from the deploy directory to remove the HTTP Invoker for JMS.
|